#ifndef SQLHELPER_H
#define SQLHELPER_H

#include <QObject>
#include <QSqlDatabase>
#include <QDateTime>
#include "calendaritem.h"

class SqlHelper : public QObject
{
    Q_OBJECT
public:
    explicit SqlHelper(QObject *parent = 0);

    bool editTask(QSqlDatabase& db, CalendarItem& item, QWidget* parent=NULL);
    bool deleteTask(QSqlDatabase& db, int id, bool confirm, QWidget* parent=NULL);
    bool conflictTask(QSqlDatabase& db, int id, int userid, const QDateTime& start, const QDateTime& end);

signals:

public slots:

};

#endif // SQLHELPER_H
